package com.youxin.busfoundation.bean;

import com.youxin.foundation.lang.BaseException;

/**
 * @desc 业务中基础的信息编码
 * @author yingde.cao
 * @date 2017-12-12
 */
public class BusinessMessages {
	public static final String SUCCESS_MESSAGE="success";
	public static final int SUCCESS_CODE=0;
	public static final String FAILURE_MESSAGE="系统错误";
	public static final int FAILURE_CODE=BaseException.FAILURE_CODE;
	public static final int USERFAILURE_CODE=BaseException.USERFAILURE_CODE;

	// 成功&失败
	public final static ResponseMessage SYSTEM_ERROR=ResponseMessage.instance(FAILURE_CODE,FAILURE_MESSAGE); 
	public final static ResponseMessage SYSTEM_OK=ResponseMessage.instance(SUCCESS_CODE,SUCCESS_MESSAGE);

	// 登陆
	public final static ResponseMessage LOGIN_INFO=ResponseMessage.instance(10,"未登陆,请登陆");
	public final static ResponseMessage TOKEN_EXPIRES=ResponseMessage.instance(11,"登陆已超时,请重新登陆");
	public final static ResponseMessage RE_LOGIN_INFO=ResponseMessage.instance(12,"请重新登陆");
	public final static ResponseMessage LOGIN_PHONE_EMPTY=ResponseMessage.instance(13,"手机号为空");
	public final static ResponseMessage LOGIN_PHONE_INCORRECT=ResponseMessage.instance(14,"手机号不正确");
	public final static ResponseMessage LOGIN_IDENTIFYING_CODE_ERR=ResponseMessage.instance(15,"验证码错误");
	public final static ResponseMessage LOGIN_IDENTIFYING_CODE_EMPTY=ResponseMessage.instance(16,"验证码为空");

	public final static ResponseMessage ACCOUNT_SWITCH_FAILURE=ResponseMessage.instance(17,"帐号切换失败");

	// 微信错误信息1000开头
	public final static ResponseMessage WxOpenGetAccessTokenMessage=ResponseMessage.instance(1000,"无法获取到access token");
	public final static ResponseMessage WxOpenGetUserInfoMessage=ResponseMessage.instance(1001,"无法获取到开放平台用户信息");
	public final static ResponseMessage WxPublicGetAccessTokenMessage=ResponseMessage.instance(1010,"无法获取到公共平台用户Access Token信息");
	public final static ResponseMessage WxPublicGetUserInfoMessage=ResponseMessage.instance(1011,"无法获取到公共平台用户信息");
	
	// DB数据
	public final static ResponseMessage DB_SAVE_ERROR=ResponseMessage.instance(1100,"数据保存错误");
	
	/**
	 * 服务升级
	 */
	public final static ResponseMessage AUTO_UPGRADE_VERSION_ERROR=ResponseMessage.instance(1200,"续约升级服务失败");
	public final static ResponseMessage SERVICE_EXPIRES=ResponseMessage.instance(1201,"企业服务已过期");
	public final static ResponseMessage RECHARGE_UPGRADE_VERSION_ERROR=ResponseMessage.instance(1202,"充值升级服务异常");
	public final static ResponseMessage UPDATE_CAPTICAL_HISTORY_SERVICE_ERROR=ResponseMessage.instance(1203,"服务异常");

	
	//线索池
	public final static ResponseMessage LEADS_NUMBER_FINISH=ResponseMessage.instance(1300,"企业线索服务已用完");
	public final static ResponseMessage LEADS_ADD_FAILURE=ResponseMessage.instance(1301,"添加线索池失败");
	public final static ResponseMessage LEADS_TRANSFER_FAILURE=ResponseMessage.instance(1303,"线索池流转失败");
	public final static ResponseMessage LEADS_CHANGE_STATUS_FAILURE=ResponseMessage.instance(1304,"线索池更新状态失败");
	public final static ResponseMessage LEADS_RELEASE_FAILURE=ResponseMessage.instance(1305,"释放线索池失败");


	/**
	 *  会员服务
	 */
	public final static ResponseMessage MEMBER_NUMBER_FINISH=ResponseMessage.instance(1300,"企业会员名额已用完");
	public final static ResponseMessage MEMBER_IDENTIFY_FAILURE=ResponseMessage.instance(1301,"企业认证失败");
	public final static ResponseMessage MEMBER_UNAUTH_FAILURE=ResponseMessage.instance(1302,"解除认证失败");
	public final static ResponseMessage MEMBER_CLOSE_ENT_EDITION_FAILURE=ResponseMessage.instance(1303,"关闭企业版失败");
	public final static ResponseMessage MEMBER_MAX_FULL=ResponseMessage.instance(1304,"企业版成员名额已用完");

	//"企业版成员名额已用完"
	public final static ResponseMessage MEMBER_ADMIN_TRANSFER_FAILURE=ResponseMessage.instance(1301,"转移管理员失败");
	
	public final static ResponseMessage MEMBER_LEAD_NUMBER_LESS=ResponseMessage.instance(1302,"企业线索数据不足");
	
	/**
	 * 数据验证
	 */
	public final static ResponseMessage NOT_VALID_MOBILE=ResponseMessage.instance(1400,"手机号码格式有误,请输入正确的手机号码");
	public final static ResponseMessage VERIFY_CODE_TIME_FREQUENTLY=ResponseMessage.instance(1401,"验证码发送过于频繁,请稍后在试");

	//public final static ResponseMessage MEMBER_L_NUMBER_LESS=ResponseMessage.instance(1302,"企业线索数据不足");


}
